This program has got quite a few problems, actually, I forgot to add a "break" in all switch cases, I wrote incorrectly the bubblesort (this has no excuses, really) and even a few cout statements... it's actually a mess.
Thank you for your suggestion, the program was stuck probably because of what you said, I passed the vector as a value rather than reference.